package com.probox.apiModules.controller.platfom;

import com.probox.common.core.web.controller.BaseController;
import com.probox.common.core.web.domain.AjaxResult;
import com.probox.common.entity.domain.platfom.vo.PlatformInfoVo;
import com.probox.common.entity.service.platfom.IPlatformInfoService;
import com.probox.common.entity.service.platfom.IPlatformTemplateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(value = "平台设置模块", tags = {"平台信息接口"})
@RestController
@RequestMapping("/platform")
public class OpenPlatformInfoController extends BaseController {

    @Autowired
    private IPlatformInfoService iPlatformInfoService;

    @Autowired
    private IPlatformTemplateService iPlatformTemplateService;

    @ApiOperation(value = "查询平台信息")
    @ApiResponses({
            @ApiResponse(code = 200, message = "OK", response = PlatformInfoVo.class),
    })
    @GetMapping("/openplatform/info")
    public AjaxResult getInfo() {
        return AjaxResult.success(iPlatformInfoService.getInfo());
    }

}
